package com.hnevc.lihao;

public class Market {
	private String marketName;
	private Prouduct []prouductArr;
	public String getMarketName(){
		return marketName;
	}
		public void setMarketName (String string, String marketName){
			this.marketName=marketName;
		}
	private Prouduct[] getProductArr() {
		return prouductArr;
	}
	public void setProductArr (Prouduct[] prouducts){
		this.prouductArr= prouductArr;
}
	Prouduct sell(String name){
		for(int i=0;i<prouductArr.length; i++){
			if(prouductArr[i].getProName()==name){
				return prouductArr[i];
			}
		}
		return null;
	}
	public void setmarketName(String string) {
		// TODO Auto-generated method stub
		
	}
}

}
